$(function(){
	$(".submit").on("click",function(){
		var remark=$("#submitText").val(); 	
		var phone=$("#phone").val(); 	
		if(phone==""|| phone==null){
			alert("请输入联系方式");
		}else if(remark==""|| remark==null){
			alert("请输入需求信息");
		}else{
			$.ajax({
				type : "POST",
				dataType : 'json',
				url : "/eshop/pcquicksubmitAction.json",
				data : {
					"remark" : remark,
					"phone" : phone,
					"name" : phone
				},
				success : function(data) {
					console.log(data);
					if(data['code'] == 200){
						alert("提交成功");
						window.location.href="/eshop/pcindex.htm";
					}
					/*if (data["responseEntity"]["code"]== 200) {
						alert("提交成功");
					}else{
						alert("网络错误，请稍后重试");
					}*/
				}
			})
		}
	})
})